﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XmHttpServer.Rest
{
    /// <summary>
    /// Exception
    /// </summary>
    public class InternalErrorException : System.Exception
    {
        int statusCode;

        public InternalErrorException(int errorCode, string message)
            : base(message)
        {
            this.statusCode = errorCode;
        }
        public int ErrorCode
        {
            get { return statusCode; }
        }
    }
}
